package com.tedu.admin.mapper;

import com.tedu.admin.pojo.dto.AdminQuery;
import com.tedu.admin.pojo.entity.Admin;
import com.tedu.admin.pojo.vo.AdminVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    AdminVO selectByAdminname(String adminname);

    void insertAdmin(Admin admin);

    List<AdminVO> selectAdmin(AdminQuery adminQuery);

    void update(Admin admin);

    void delete(Long adminId);

    AdminVO selectById(Long parentId);
}
